print(3//2)
a = [1, 2, 3]
a.insert(0, 2)
print(a)
print(a[:-1])
for i in range(3):
    print(i)
postorder = [1,3,2,6,5]
root = postorder[-1]
idx = 0
for i in range(len(postorder)):
    if postorder[i] > root:
        idx = i
        break
if idx == 0:
    idx = len(postorder) - 1
left_postorder = postorder[:idx]
right_postorder = postorder[idx:-1]
print(left_postorder, right_postorder)
num = int(input())
print(int((num // 64) + (num % 64 // 16) + (num % 64 % 16 // 4) + (num % 64 % 16 % 4)))